<template>
  <div class="newsdetail">
    <div class="topheader">
      <div class="title">NEWS</div>
    </div>
    <div class="contentbox">
      <div class="listwarp">
        <div class="topbox">
          <div class="title">{{result.tittle}}</div>
          <div class="info">
            <div class="footerInfo">
              <img src="/image/news/timer.png" alt="" />
              <span>{{result.releaseTime ? result.releaseTime.split(' ')[0] :'' }}</span>
              <img src="/image/news/user.png" alt="" />
              <span>{{result.publisher}}</span>
            </div>
          </div>
          <div v-html='result.content' class="conbox"></div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import axios from 'axios'
export default {
  data(){
    return {
      result:{}
    }
  },
  async mounted() {
    let result = {}
    let res = await axios.post('/officialwebsiteapi/informations/apiGetInformationDetails',{id:this.$route.query.id})
    if(res.data.code === 1000){
      result = res.data.data.item
    }
    this.result = result
  },
};
</script>
<style lang="scss" scoped>
.topheader {
  width: 100%;
  height: 746px;
  background: url("http://syg-photo.oss-cn-shanghai.aliyuncs.com/yingdin/photo/bg.png-1593655030000") no-repeat;
  background-size: 100% 100%;
  position: relative;
  .title {
    position: absolute;
    top: 381px;
    left: 276px;
    font-size: 157px;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    line-height: 242px;
    text-align: center;
    width: 556px;
    background: url("/image/news/newsbg.png") no-repeat;
  }
}
.contentbox {
  padding-bottom: 36px;
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-top: 69px;
}
.listwarp {
  box-sizing: border-box;
  padding: 24px 31px 0 31px;
  background-color: #f9f9f9;
  .title{
    font-size: 29px;
    line-height: 94px;
    color: #3f3f3f;
  }
  .conbox{
    padding-bottom: 112px;
    /deep/ img{
      max-width: 100%;
    }
  }
  .footerInfo {
    background-position: 100% 100%;
    padding: 18px 0 12px;
    border-top: 3px solid #e6e6e6;
    font-size: 21px;
    color: #949494;
    display: flex;
    img:first-of-type {
      width: 28px;
      height: 28px;
    }
    img:last-of-type {
      margin-left: 11px;
      width: 26px;
      height: 27px;
    }
    span:last-of-type {
      margin-left: 6px;
    }
  }
}
</style>
